<?php
// ------------ User ---------------------
class User {
private $userId;
private $userName;
private $userPass;
private $userFirstName;
private $userLastName;
private $userPhone;
private $userMail;
private $userAddress;
private $userZip;
private $userCity;
private $countryId;

public function getUserId() {
  return $this->userId;
}
public function setUserId($userId) {
  $this->userId = $userId;
}

public function getUserName() {
  return $this->userName;
}
public function setUserName($userName) {
  $this->userName = $userName;
}

public function getUserPass() {
  return $this->userPass;
}
public function setUserPass($userPass) {
  $this->userPass = $userPass;
}

public function getUserFirstName() {
  return $this->userFirstName;
}
public function setUserFirstName($userFirstName) {
  $this->userFirstName = $userFirstName;
}

public function getUserLastName() {
  return $this->userLastName;
}
public function setUserLastName($userLastName) {
  $this->userLastName = $userLastName;
}

public function getUserPhone() {
  return $this->userPhone;
}
public function setUserPhone($userPhone) {
  $this->userPhone = $userPhone;
}

public function getUserMail() {
  return $this->userMail;
}
public function setUserMail($userMail) {
  $this->userMail = $userMail;
}

public function getUserAddress() {
  return $this->userAddress;
}
public function setUserAddress($userAddress) {
  $this->userAddress = $userAddress;
}

public function getUserZip() {
  return $this->userZip;
}
public function setUserZip($userZip) {
  $this->userZip = $userZip;
}

public function getUserCity() {
  return $this->userCity;
}
public function setUserCity($userCity) {
  $this->userCity = $userCity;
}

public function getCountryId() {
  return $this->countryId;
}
public function setCountryId($countryId) {
  $this->countryId = $countryId;
}

public function __construct($userId, $userName, $userPass, $userFirstName, $userLastName, $userPhone, $userMail, $userAddress, $userZip, $userCity, $countryId) {
$this->userId = $userId;
$this->userName = $userName;
$this->userPass = $userPass;
$this->userFirstName = $userFirstName;
$this->userLastName = $userLastName;
$this->userPhone = $userPhone;
$this->userMail = $userMail;
$this->userAddress = $userAddress;
$this->userZip = $userZip;
$this->userCity = $userCity;
$this->countryId = $countryId;
}

public function traceToFile(){
  //absichtlich mit den gettern um die vollstaendige schnittstelle zu testen
  traceToFile("***BEGIN trace ContentItem***");
  traceToFile("userId: " . $this->getUserId());
  traceToFile("userName: " . $this->getUserName());
  traceToFile("userPass: " . $this->getUserPass());
  traceToFile("userFirstName: " . $this->getUserFirstName());
  traceToFile("userLastName: " . $this->getUserLastName());
  traceToFile("userPhone: " . $this->getUserPhone());
  traceToFile("userMail: " . $this->getUserMail());
  traceToFile("userAddress: " . $this->getUserAddress());
  traceToFile("userZip: " . $this->getUserZip());
  traceToFile("userCity: " . $this->getUserCity());
  traceToFile("countryId: " . $this->getCountryId());
  traceToFile("***END trace ContentItem***");
}
}
?>
